* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #333;
}
:root {
  --primary: #2f80ed;
} /* 主色调 */

/* 通用导航（同首页，导航居中） */


.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin-right: 20px; /* 调整与搜索框的间距 */
}
.search-container {
  display: flex;
  align-items: center;
}
.search-box {
  width: 200px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px; /* 左侧圆角 */
  outline: none;
  transition: all 0.3s;
  border-right: none; /* 移除右侧边框，与按钮融合 */
}
.search-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.2);
}
.search-button {
  padding: 8px 12px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0; /* 右侧圆角 */
  cursor: pointer;
  transition: background-color 0.3s;
}
.search-button:hover {
  background-color: #1a6fd8;
}
.nav-links {
  display: flex;
  gap: 32px;
  margin: 0 auto; /* 导航项居中 */
}
.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 1rem;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* 发现页布局：增大间距，优化层级 */
.discover-section {
  display: flex;
  gap: 30px;
  padding: 30px 40px;
}
.left-column {
  flex: 3;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 32px; /* 增大内边距 */
}
.right-column {
  flex: 1;
}

/* 标签栏：支持悬浮展开频道 */
.tab-bar {
  display: flex;
  border-bottom: 1px solid #e6e8ec;
  margin-bottom: 24px; /* 增大间距 */
  position: relative; /* 为下拉菜单定位 */
}
.tab-bar a {
  padding: 12px 18px; /* 增大点击区域 */
  text-decoration: none;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  font-size: 1rem; /* 增大字体 */
}
.tab-bar a.active {
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

/* 更多按钮 + 悬浮频道列表（仿微博） */
.more-btn {
  margin-left: auto;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}
.channel-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 24px; /* 增大内边距 */
  display: none; /* 默认隐藏 */
  z-index: 999;
  min-width: 600px; /* 保证频道展示空间 */
}
.channel-dropdown.open {
  display: block;
}
.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* 增大频道间距 */
  margin-bottom: 16px;
}
.channel-row span {
  background: #f5f7fa;
  padding: 8px 16px; /* 增大点击区域 */
  border-radius: 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}
.channel-row span:hover {
  background: #e6e8ec;
}

/* 帖子模块：增大高度，优化排版 */
.post {
  border-bottom: 1px solid #e6e8ec;
  padding-bottom: 24px; /* 增大间距 */
  margin-bottom: 24px;
}
.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px; /* 增大间距 */
}
.avatar {
  width: 50px; /* 增大头像 */
  height: 50px;
  background: #dde2e7;
  border-radius: 50%;
  margin-right: 16px; /* 增大间距 */
}
.post-info {
  display: flex;
  flex-direction: column;
}
.post-info .name {
  font-size: 1.1rem; /* 增大字体 */
  font-weight: 600;
  color: #333;
}
.post-info .time {
  font-size: 0.85rem;
  color: #999;
  margin-top: 4px; /* 增大间距 */
}
.post-content {
  background: #f9fafc;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  padding: 16px; /* 增大内边距 */
  margin-bottom: 16px;
  min-height: 80px; /* 增大最小高度 */
  font-size: 1rem; /* 增大字体 */
  color: #666;
  line-height: 1.6; /* 增大行高 */
}
.post-actions {
  display: flex;
  justify-content: space-between;
}
.post-actions button {
  background: #fff;
  border: 1px solid #e6e8ec;
  padding: 8px 20px; /* 增大按钮尺寸 */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.post-actions button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 侧边栏：优化间距 */
.sidebar {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px; /* 增大内边距 */
  margin-bottom: 24px;
}
.sidebar h3 {
  font-size: 1.1rem; /* 增大标题 */
  margin-bottom: 16px; /* 增大间距 */
  color: #333;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  padding: 8px 0; /* 增大间距 */
  border-bottom: 1px solid #e6e8ec;
}
.sidebar li:last-child {
  border-bottom: none;
}
.sidebar a {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.sidebar a:hover {
  color: var(--primary);
}
.refresh {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  margin-top: 12px; /* 增大间距 */
}